{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header">
                    <h1>{:lang('XtQxLb')}</h1>
                    <div class="controls">
                        <a href="{:url('SystemGroup/showAdd')}"><i class="fa fa-plus"></i></a>
                        <a href="{:url('SystemGroup/showList')}"><i class="fa fa-refresh"></i></a>
                    </div>
                </div>
                <div class="tile-widget bg-transparent-black-2">
                    <div class="row">
                        <div class="col-sm-12">
                            <form class="search-form">
                                <div class="form-group col-sm-2">
                                    <select class="chosen-select chosen-transparent form-control" name="input_type">
                                        <option value="">{:lang('XtSsTjLx')}</option>
                                        <option value="group_id" {eq name="input_type" value="group_id"}selected{/eq}>{:lang('XtQxId')}</option>
                                        <option value="group_title" {eq name="input_type" value="group_title"}selected{/eq}>{:lang('XtQxMc')}</option>
                                    </select>
                                </div>
                                <div class="form-group col-sm-2">
                                    <input type="text" class="form-control" name="input_text" value="{$input_text}" placeholder="{:lang('XtSsTjNr')}" />
                                </div>
                                <div class="form-group col-sm-2">
                                    <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')}" style="width: 100%" id="Search" data-url="{:url('SystemGroup/showList')}">{:lang('XtAnSs')}</button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <div class="tile-body nopadding">
                        <table class="table table-bordered table-custom">
                            <thead>
                            <tr>
                                <th>
                                    <div class="checkbox check-transparent">
                                        <input type="checkbox" id="allchck">
                                        <label for="allchck"></label>
                                    </div>
                                </th>
                                <th>{:lang('XtQxId')}</th>
                                <th>{:lang('XtQxMc')}</th>
                                <th>{:lang('XtQxCySl')}</th>
                                <th>{:lang('XtQxZt')}</th>
                                <th>{:lang('XtLbGdCz')}</th>
                            </tr>
                            </thead>
                            <tbody>
                            {notempty name="Lists"}
                                {volist name="Lists" id="vo" key="key"}
                                <tr>
                                    <td>
                                        <div class="checkbox check-transparent">
                                            <input type="checkbox" value="{$vo.group_id}" id="chck{$key}">
                                            <label for="chck{$key}"></label>
                                        </div>
                                    </td>
                                    <td>{$vo.group_id}</td>
                                    <td>{$vo.group_title}</td>
                                    <td>{$vo.group_member}</td>
                                    <td>{:lang('XtQxZt'.$vo['group_state'])}</td>
                                    <td class="actions">
                                        <a class="edit" href="{:url('SystemGroup/showEdit',array('id'=>$vo['group_id']))}">
                                            <i class="fa fa-pencil fa-lg fa-fw"></i>
                                        </a>
                                        <a class="delete ajax-handle" href="javascript:void(0);" data-url="{:url('SystemGroup/showDel')}" data-ids="{$vo.group_id}">
                                            <i class="fa fa-trash fa-lg fa-fw"></i>
                                        </a>
                                    </td>
                                </tr>
                                {/volist}
                            {else/}
                            <tr>
                                <td colspan="20">{:lang('XtLbZwSj')}</td>
                            </tr>
                            {/notempty}
                            </tbody>
                        </table>
                    </div>
                    <div class="col-sm-12">&nbsp;</div>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            {notempty name="Lists"}
                                {$Lists->render()}
                            {/notempty}
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){
            
        })
    </script>
{/block}